home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eoadaptors / Sybase / SybaseColumn.h < prev    next >
Encoding:
Text File  |  1995-01-04  |  1.2 KB  |  33 lines

  1. // SybaseColumn.h
  2. // Copyright (c) 1994, NeXT Computer, Inc.  All rights reserved.
  3.  
  4. #import <eoaccess/eoaccess.h>
  5. #import "SybaseAdaptor.h"
  6.  
  7. @class SybaseChannel;
  8.  
  9. // This class is used internally by the Sybase adaptor to maintain state
  10. // needed to fetch data.
  11.  
  12. @interface SybaseColumn : NSObject
  13. {
  14.     SybaseChannel *_channel;
  15.     DBPROCESS *_dbProcess;
  16.     EOAttribute *_attribute;
  17.     int _srcType;
  18. }
  19. + (Class)valueClassForAttribute:(EOAttribute *)attribute sourceType:(int)sourceType;
  20. + columnForAttribute:(EOAttribute *)att channel:(SybaseChannel *)channel sourceType:(int)sourceType;
  21.     // returns nil if column could not be created to map between sourceType
  22.     // and attribute type.  Caller should log error.
  23.  
  24. - initWithAttribute:(EOAttribute *)attribute channel:(SybaseChannel *)channel sourceType:(int)sourceType;
  25.     // Called by columnForAttribute.  Not called directly.
  26.  
  27. - valueFromBytes:(void *)bytes length:(int)length zone:(NSZone *)zone;
  28.     // Bytes should be non-nil and length > 0 (caller is responsible for
  29.     // catching this and returning EONull as necessary.
  30.     // Returned value is retained (caller responsible for releasing).
  31.     // Returns nil if error in creating value.
  32. @end
  33.